package com.uni.crawl.service.crawl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.yulichang.base.MPJBaseService;
import com.uni.crawl.common.enums.crawl.CrawlQueueStatusEnum;
import com.uni.crawl.model.entity.crawl.CrawlQueue;
import com.uni.crawl.model.query.crawl.CrawlQueuePageQuery;
import com.uni.crawl.model.vo.crawl.CrawlQueueVO;

/**
 * <p>
 *  爬虫队列 服务类
 * </p>
 *
 * @author JervisPG
 * @since 2023-12-27
 */
public interface CrawlQueueService extends MPJBaseService<CrawlQueue> {

    void setQueueStatus(Long id, CrawlQueueStatusEnum statusEnum);

    boolean isExists(Long instanceId, String urlMd5);

    Page<CrawlQueueVO> getPage(CrawlQueuePageQuery pageQuery);
}
